package com.g8.pethospitallearnbackend.entity;

import java.io.Serializable;

public class Staff implements Serializable {
    private String staffId;

    private String staffName;

    private String staffImg;

    private String staffTitle;

    private String staffDuty;

    private static final long serialVersionUID = 1L;

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getStaffImg() {
        return staffImg;
    }

    public void setStaffImg(String staffImg) {
        this.staffImg = staffImg;
    }

    public String getStaffTitle() {
        return staffTitle;
    }

    public void setStaffTitle(String staffTitle) {
        this.staffTitle = staffTitle;
    }

    public String getStaffDuty() {
        return staffDuty;
    }

    public void setStaffDuty(String staffDuty) {
        this.staffDuty = staffDuty;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", staffId=").append(staffId);
        sb.append(", staffName=").append(staffName);
        sb.append(", staffImg=").append(staffImg);
        sb.append(", staffTitle=").append(staffTitle);
        sb.append(", staffDuty=").append(staffDuty);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Staff other = (Staff) that;
        return (this.getStaffId() == null ? other.getStaffId() == null : this.getStaffId().equals(other.getStaffId()))
            && (this.getStaffName() == null ? other.getStaffName() == null : this.getStaffName().equals(other.getStaffName()))
            && (this.getStaffImg() == null ? other.getStaffImg() == null : this.getStaffImg().equals(other.getStaffImg()))
            && (this.getStaffTitle() == null ? other.getStaffTitle() == null : this.getStaffTitle().equals(other.getStaffTitle()))
            && (this.getStaffDuty() == null ? other.getStaffDuty() == null : this.getStaffDuty().equals(other.getStaffDuty()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStaffId() == null) ? 0 : getStaffId().hashCode());
        result = prime * result + ((getStaffName() == null) ? 0 : getStaffName().hashCode());
        result = prime * result + ((getStaffImg() == null) ? 0 : getStaffImg().hashCode());
        result = prime * result + ((getStaffTitle() == null) ? 0 : getStaffTitle().hashCode());
        result = prime * result + ((getStaffDuty() == null) ? 0 : getStaffDuty().hashCode());
        return result;
    }
}